using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SimExpApp
{
    public partial class RegExpIntData : Form
    {
        public RegExpIntData(DFAFromRegExpData data)
        {
            InitializeComponent();

            parseTreeBox1.ParseTree = data.Tree;
            foreach (KeyValuePair<int, DFAFromRegExpData.Symbol> itm in data.Followpos)
            {
                ListViewItem lvitm=listView1.Items.Add(itm.Key.ToString());
                lvitm.SubItems.Add(itm.Value.Sym.ToString());
                lvitm.SubItems.Add(itm.Value.Follow);
            }
        }
    }
}